import type { NextConfig } from 'next';

import createNextIntlPlugin from 'next-intl/plugin';

const withNextIntl = createNextIntlPlugin();

const nextConfig: NextConfig = {
    /* config options here */
    experimental: {
        // serverComponentsExternalPackages: ['puppeteer-core'],
    },
    serverExternalPackages: ['puppeteer-core', 'prettier'], // 已经不是实验性质的配置
};

export default withNextIntl(nextConfig);
